package com.power.sifa.approve.api;

import com.plf.common.domain.ResponseDTO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import com.power.sifa.approve.model.Apl_admre_audit;
import com.power.sifa.approve.model.pageInfo.Apl_admre_auditPageInfo;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  行政复议相关审批表 Feign
 */
public interface IApl_admre_auditFeign {

    /**
     * 行政复议相关审批表分页列表
     */
    @PostMapping("/apl_admre_audit/list")
    ResponseDTO list(@RequestBody Apl_admre_auditPageInfo apl_admre_auditPageInfo);

    /**
    * 查看行政复议相关审批表
    */
    @GetMapping("/apl_admre_audit/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除行政复议相关审批表
    */
    @PostMapping("/apl_admre_audit/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看行政复议相关审批表 复合主键使用
    // */
    //@PostMapping("/apl_admre_audit/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Apl_admre_audit.Apl_admre_auditPK pk);

    /**
     * 修改或保存行政复议相关审批表
     */
    @PostMapping("/apl_admre_audit/save")
    ResponseDTO save(@RequestBody Apl_admre_audit  apl_admre_audit);

    ///**
    // * 删除行政复议相关审批表 复合主键使用
    // */
    //@PostMapping("/apl_admre_audit/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Apl_admre_audit.Apl_admre_auditPK pk);

    /**
     * 批量删除行政复议相关审批表
     */
    @PostMapping("/apl_admre_audit/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);

     /**
     * 导出excel
     */
    @PostMapping("/apl_admre_audit/output")
    void output(HttpServletResponse response, @RequestBody Apl_admre_auditPageInfo apl_admre_auditPageInfo);

     /**
     * 导出excel模板
     */
    @PostMapping("/apl_admre_audit/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);

     /**
     *	导入excel
     */
    @PostMapping("/apl_admre_audit/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    /**
     * 更新是否市领导审批字段
     * @param id
     * @param iscitymanager
     * @return
     */
    @PostMapping("/apl_admre_audit/updatesIscitymanager")
    ResponseDTO updatesIscitymanager(@RequestParam("id") String id,@RequestParam("iscitymanager") Integer iscitymanager);


    /**
     * 获取最新一条子流程记录
     * @param parentApplyid 父流程id
     * @param procType 流程变量
     * @return
     */
    @PostMapping("/apl_admre_audit/getLastChildAudit")
    ResponseDTO getLastChildAudit(@RequestParam("parentApplyid") String parentApplyid, @RequestParam("procType") Integer procType);



    /**
     * 查询全部的流程审批记录
     * @param applyid
     * @param
     * @return
     */
    @PostMapping("/apl_admre_audit/findAllAuditList")
    ResponseDTO findAllAuditList(@RequestParam("applyid") String applyid);

}
